package com.app.mail.service;

import com.app.mail.dto.StoreMailDto;
import com.app.mail.model.StoreMail;
import com.app.sysmodule.exception.ServiceException;

import java.util.Date;
import java.util.List;

/**
 * Created by song on 2018/1/31.
 */
public interface MailService {
    public List<StoreMailDto> getMailManageList() throws ServiceException;

    /**
     * 删除管理信息
     * @param id
     */
    void deleteMailManage(Long id)throws ServiceException;
    /**
     * 进入编辑页
     */
    public StoreMailDto editMaiManage(Long id) throws ServiceException;

    /**
     * 保存实体
     * @param storeMail
     */
    void saveMailManage(StoreMail storeMail) throws ServiceException;

    /**
     * 修改是否发送状态
     * @param id
     * @param isSend
     */
    void updateIsSend(String id, String isSend) throws ServiceException;
    /**
     * 发送邮件
     */
    void sendMail(String appName, String serverVersion, String size , String time, String remark, String url,String type,String path,String osName) throws ServiceException;
}
